//
//  MyViewController.m
//  Hai
//
//  Created by 千金贷 on 16/2/23.
//  Copyright © 2016年 wangzijian. All rights reserved.
//

#import "MyViewController.h"
#import "RegisterController.h"
#import "LoginController.h"
#import "PwdController.h"
#import "MyFriendViewController.h"

//#import "UserViewController.h"
//#import "SetupViewController.h"
//#import "LoginController.h"
////#import "RealViewController.h"
////#import "MyConfirmViewController.h"
//#import "AboutViewController.h"
//#import "MyFriendViewController.h"
//#import "CollectViewController.h"
#import "CollectViewController.h"
#import "SJAvatarBrowser.h"
#import "UIImageView+WebCache.h"

#import "StepAccountViewController.h"
#import "MyStatusSVViewController.h"
#import "SetupViewController.h"
@interface MyViewController ()

@end

@implementation MyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
   
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewDidAppear:animated];
     self.navigationController.navigationBarHidden =YES;
//    NSError *err;
//    NSData *jsonDataInfo = [[NSUserDefaults standardUserDefaults]objectForKey:@"memberinfo"];
//    NSDictionary *memberInfo = [NSJSONSerialization JSONObjectWithData:jsonDataInfo options:NSJSONReadingMutableContainers error:&err];
//    self.numlable.text =[NSString stringWithFormat:@"乐钓号：%@",GetmemberNum];
//    self.namelable.text =memberInfo[@"member_name"];
//    NSString *headurl =memberInfo[@"member_head"];
//    if (![headurl isEqual:[NSNull null]]) {
//        
//        //                    [_head setImage:[Util getImageFromURL:headurl]];
//        [_head sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",BaseImageURL,headurl]]];
//        
//        _head.userInteractionEnabled = YES;
//        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showImage)];
//        [_head addGestureRecognizer:tap];
//        if (_head.image==nil) {
//            [_head setImage:[UIImage imageNamed:@"default_head"]];
//            
//        }
//        
//    }
}
-(void)showImage{
    if (_head.image!=nil) {
        [SJAvatarBrowser showImage:_head];//调用方法
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; 
}
- (IBAction)myfriend{
    MyFriendViewController *l = [[MyFriendViewController alloc] init];
    [self.navigationController pushViewController:l animated:YES];
}
- (IBAction)myscore{}
- (IBAction)mycollection{
    CollectViewController *l = [[CollectViewController alloc] init];
    [self.navigationController pushViewController:l animated:YES];
}
- (IBAction)mystate{
    MyStatusSVViewController *user = [[MyStatusSVViewController alloc]init];
    [self.navigationController pushViewController:user animated:YES];
}
- (IBAction)mysetup{
    StepAccountViewController *user = [[StepAccountViewController alloc]init];
    [self.navigationController pushViewController:user animated:YES];
}
- (IBAction)mycircle{}
- (IBAction)setup{
    SetupViewController *setup = [[SetupViewController alloc]init];
    [self.navigationController pushViewController:setup animated:YES];
}
- (IBAction)news{}

@end
